package com.yumeno.education.service.impl;

import com.yumeno.education.dao.StudentDao;
import com.yumeno.education.entity.Student;
import com.yumeno.education.service.StudentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentServiceImpl implements StudentService {

    @Resource
    private StudentDao studentDao;

    @Override
    public Student login(Student student) {
        return studentDao.selectByUsername(student.getUsername());
    }
}
